package asia.doing.entity;

/**
 * 博客信息
 */
public class Blog {

    /** ID */
    private Long id;
    /** 标题 */
    private String title;
    /** 内容 */
    private String content;
    /** 简介 */
    private String descr;
    /** 封面 */
    private String cover;
    /** 标签 */
    private String tags;
    /** 发布人ID */
    private Long userId;
    /** 发布日期 */
    private String date;
    /** 浏览量 */
    private Integer readCount;

    private Long categoryId;

    private String categoryName;

    private String userName;

    //博客文章喜欢次数
    private Integer likesCount;

    //博客是否已被点赞
    private Boolean userLike;


    //博客文章被收藏次数
    private Integer collectCount;

    //博客是否已被收藏
    private Boolean userCollect;

    //新增一个作者信息
    private User user;

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public Integer getLikesCount() {
        return likesCount;
    }

    public void setLikesCount(Integer likesCount) {
        this.likesCount = likesCount;
    }

    public Boolean getUserLike() {
        return userLike;
    }

    public void setUserLike(Boolean userLike) {
        this.userLike = userLike;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Boolean getUserCollect() {
        return userCollect;
    }

    public void setUserCollect(Boolean userCollect) {
        this.userCollect = userCollect;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }


    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", descr='" + descr + '\'' +
                ", cover='" + cover + '\'' +
                ", tags='" + tags + '\'' +
                ", userId=" + userId +
                ", date='" + date + '\'' +
                ", readCount=" + readCount +
                ", categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                ", userName='" + userName + '\'' +
                ", likesCount=" + likesCount +
                ", userLike=" + userLike +
                ", collectCount=" + collectCount +
                ", userCollect=" + userCollect +
                ", user=" + user +
                '}';
    }
}